<?php
/**
 * Introduction: 快递公司
 * @author: 杨陈鹏
 * @date: 2016/4/11 03:36
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Admin\Controller\Logistics;


use Common\Controller\Admin\CommonController;

class ExpressController extends CommonController
{

    /**
     * Introduction: 快递公司列表
     * @author: 杨陈鹏
     * @date: 2016/4/11 03:36
     * @email: yangchenpeng@cdlinglu.com
     */
    public function lists()
    {

        $logic = D('Common/Express', 'Logic');

        $where = I('post.data');

        $data = $logic::getData($where);

        $this->data = $data['data'];

//        echo '<pre>';
//
//        var_dump($this->data);
//
//        exit;


        $this->display();

    }

    /**
     * Introduction: 修改快递公司
     * @author: 杨陈鹏
     * @date: 2016/4/11 03:36
     * @email: yangchenpeng@cdlinglu.com
     */
    public function update()
    {

        $logic = D('Common/Express', 'Logic');

        $data = I('post.data');

        $data = $logic::update($data['where'], $data['data']);

        $this->ajaxReturn($data);
    }


}